package fr.utbm.gl52.smartgrid;

import fr.utbm.gl52.smartgrid.controller.Controller;
import fr.utbm.gl52.smartgrid.model.BusDC;
import fr.utbm.gl52.smartgrid.model.ModelManager;
import fr.utbm.gl52.smartgrid.view.ViewManager;

public class Launcher {

	/**
	 * Main
	 * 
	 * @param args
	 */
	public static void main(String[] args) {

		// Demarre la fenetre principale dans un thread separe
		ViewManager view = new ViewManager();
		BusDC model = BusDC.getInstance();
		Controller controller = new Controller();
		ModelManager modelManager = new ModelManager();

		modelManager.setView(view);
		modelManager.setModel(model);

		controller.setModelManager(modelManager);
		view.addController(controller);

		Thread t_mainFrame = new Thread(view);
		t_mainFrame.start();
	}

}
